package com.example.inject.springinject;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class Person {
    @Resource
    PersonService personService;

    public String hello() {
        return personService.hello();
    }
}
